package com.cman777.springc.mybatisgenerator.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author chenzhicong
 * @time 2020/3/15 20:21
 * @description
 */
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "com.cman777.springc")
@PropertySource(value = {"classpath:mybatisgenerator/mybatisgenerator.properties"},ignoreResourceNotFound = true)
public class MybatisGeneratorProperties {
    /**
      * 作者
      */
    private String author;
    /**
      * 数据源链接
      */
    private String dataSourceUrl;
    /**
      * 驱动类
      */
    private String driverName;
    /**
      * 用户名
      */
    private String userName;
    /**
      * 密码
      */
    private String password;
    /**
      * 父包名
      */
    private String parentPackageName;
    /**
      * 表名
      */
    private List<String> tableNames;
    /**
      * 是否覆盖
      */
    private Boolean isOverride = false;

}
